package com.ruoyi.task.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监控任务对象 kw_task_info
 * 
 * @author gonianer
 * @date 2023-11-17
 */
public class KwTaskInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 系统任务id */
    @Excel(name = "系统任务id")
    private Long jobId;

    /** 父任务id */
    @Excel(name = "父任务id")
    private Long pId;

    /** 任务类型 */
    @Excel(name = "任务类型")
    private String taskType;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String taskDesc;

    /** 任务参数 */
    @Excel(name = "任务参数")
    private String taskParams;

    /** 任务状态:0-未开始、1-执行中、2-执行失败、3-执行成功 */
    @Excel(name = "任务状态:0-未开始、1-执行中、2-执行失败、3-执行成功")
    private Integer taskStat;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 添加人 */
    @Excel(name = "添加人")
    private String createUser;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateUser;

    private Long finishCnt;
    private Long totalCnt;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setJobId(Long jobId)
    {
        this.jobId = jobId;
    }

    public Long getJobId()
    {
        return jobId;
    }
    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }
    public void setTaskType(String taskType) 
    {
        this.taskType = taskType;
    }

    public String getTaskType() 
    {
        return taskType;
    }
    public void setTaskDesc(String taskDesc) 
    {
        this.taskDesc = taskDesc;
    }

    public String getTaskDesc() 
    {
        return taskDesc;
    }
    public void setTaskParams(String taskParams) 
    {
        this.taskParams = taskParams;
    }

    public String getTaskParams() 
    {
        return taskParams;
    }
    public void setTaskStat(Integer taskStat) 
    {
        this.taskStat = taskStat;
    }

    public Integer getTaskStat() 
    {
        return taskStat;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public Long getFinishCnt() {
        return finishCnt;
    }

    public void setFinishCnt(Long finishCnt) {
        this.finishCnt = finishCnt;
    }

    public Long getTotalCnt() {
        return totalCnt;
    }

    public void setTotalCnt(Long totalCnt) {
        this.totalCnt = totalCnt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobId", getJobId())
            .append("pId", getpId())
            .append("taskType", getTaskType())
            .append("taskDesc", getTaskDesc())
            .append("taskParams", getTaskParams())
            .append("taskStat", getTaskStat())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
